import request from '../utils/request';

export const fetchData = query => {
    return request({
        url: '/api/stand/index/doIndex',
        method: 'get',
        params: query
    });
};

/*根据roleId查询权限信息*/
export const selectRoleById = query => {
    return request({
        url: '/api/upp/role/selectRoleById',
        method: 'post',
        params: query
    });
};

export const doIndex = query => {
    return request({
        url: '/api/upp/index/doIndex',
        method: 'post'
    });
};

//getVersion 获取版本
export const getVersion = query => {
    return request({
        url: '/api/upp/index/getVersion',
        method:'post',
        // url:'./json/version.json',
        // method: 'get',
        params: query
    });
};
